package psd.model.Prolog.Converters;

import org.eclipse.jdt.core.dom.SynchronizedStatement;

import psd.model.IConverter;
import psd.model.Prolog.FactGenerationToolbox;
import psd.model.Prolog.PrologConverter;


public class PrologSynchronizedStatementConverter extends PrologConverter
		implements IConverter<SynchronizedStatement> {

	public PrologSynchronizedStatementConverter(FactGenerationToolbox toolbox) {
		super(toolbox);
	}

	@Override
	public boolean convert(SynchronizedStatement node) {
		String args[] = { idResolver.getID(node.getExpression()),
				idResolver.getID(node.getBody()) };
		createBodyFact(node, "synchronizedT", args);
		return true;
	}

}
